Pixeldev\SquareWooSync\REST\SquareController D

Total Complexity 151
Dependencies 12
Dependents 2
Total lines 824
Lines of code 567
Logical lines of code 365
Comment lines 112
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
handle_customer_updated()
C
33 30 84
handle_catalog_version_updated()
C
32 27 93
compare_skus()
B
40 21 61
receive_square_update()
A
44 16 40
get_square_inventory()
A
41 13 51
handle_inventory_count_updated()
A
42 12 48
update_square_inventory_function()
S
49 4 32
save_inventory_to_db()
S
51 4 28
processProductVariations()
S
57 4 17
import_to_woocommerce()
S
55 3 19
get_saved_inventory()
S
59 3 13
get_token_and_validate()
S
63 3 11
register_routes()
S
57 2 16
clear_inventory_table()
S
58 2 16
fetchOptionValue()
S
72 2 4
fetchOptionName()
S
72 2 4
get_woocommerce_products_square()
S
60 1 14
get_woocommerce_products()
S
62 1 13
acknowledge_receipt()
S
81 1 3